using System;
using System.CodeDom.Compiler;
using System.ComponentModel;
using System.Diagnostics;
using System.Runtime.Serialization;

namespace Buddy.Auth.SR
{
	[Serializable]
	[DataContract(Name = "r0", Namespace = "http://schemas.datacontract.org/2004/07/")]
	[GeneratedCode("System.Runtime.Serialization", "4.0.0.0")]
	[DebuggerStepThrough]
	[KnownType(typeof(d0))]
	public class r0 : IExtensibleDataObject, INotifyPropertyChanged
	{
		[NonSerialized]
		private ExtensionDataObject extensionDataObject_0;

		[OptionalField]
		private string BodyField;

		[OptionalField]
		private bool SuccessField;

		[Browsable(false)]
		public ExtensionDataObject ExtensionData
		{
			get
			{
				return extensionDataObject_0;
			}
			set
			{
				extensionDataObject_0 = value;
			}
		}

		[DataMember]
		public string Body
		{
			get
			{
				return BodyField;
			}
			set
			{
				if ((object)BodyField != value)
				{
					BodyField = value;
					RaisePropertyChanged("Body");
				}
			}
		}

		[DataMember]
		public bool Success
		{
			get
			{
				return SuccessField;
			}
			set
			{
				if (!SuccessField.Equals(value))
				{
					SuccessField = value;
					RaisePropertyChanged("Success");
				}
			}
		}

		public event PropertyChangedEventHandler PropertyChanged;

		protected void RaisePropertyChanged(string propertyName)
		{
			this.PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
		}
	}
}
